package org.jeecg.modules.basic.entry.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 学生行为异常表
 * @Author: jeecg-boot
 * @Date:   2021-03-29
 * @Version: V1.0
 */
@Data
@TableName("lwgy_abnormal_action")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_abnormal_action对象", description="学生行为异常表")
public class LwgyAbnormalAction implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**校区*/
	//@Excel(name = "校区", width = 15)
    @Excel(name = "校区", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "校区")
    @Dict(dicCode = "id" ,dicText = "name" ,dictTable = "lwgy_base_apartment")
    private String campus;
	/**楼号*/
	//@Excel(name = "楼号", width = 15)
    @ApiModelProperty(value = "楼号")
    @Excel(name = "楼号", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    /*@TableField(exist = false)*/
    @Dict(dicCode = "id" ,dicText = "name" ,dictTable = "lwgy_base_apartment")
    private String buildingNum;
	/**单元*/
	//@Excel(name = "单元", width = 15)
    @Excel(name = "单元", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "单元")
    /*@TableField(exist = false)*/
    @Dict(dicCode = "id" ,dicText = "name" ,dictTable = "lwgy_base_apartment")
    private String unit;
	/**房间号*/
	//@Excel(name = "房间号", width = 15)
    @Excel(name = "房间号", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
  /*  @TableField(exist = false)*/
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "房间号")
    private String roomNum;
	/**床位号*/
	//@Excel(name = "床位号", width = 15)
    @Excel(name = "床位号", width = 15,dictTable = "lwgy_base_bed", dicText = "name", dicCode = "id")
    /*@TableField(exist = false)*/
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_bed")
    @ApiModelProperty(value = "床位号")
    private String bedNum;
	/**学生姓名*/
	@Excel(name = "学生姓名", width = 15)
    @ApiModelProperty(value = "学生姓名")
    private String studentName;
    @Excel(name = "学生学号", width = 15)
    @ApiModelProperty(value = "学生学号")
    private String studentNumber;
    //@Excel(name = "学生性别", width = 15)
    @Excel(name = "性别", width = 15, dicCode = "sex")
    @ApiModelProperty(value = "学生性别")
    private String studentSex;
   // @Excel(name = "学生学院", width = 15)
    @Excel(name = "学生学院", width = 15,dictTable = "lwgy_base_school", dicText = "name", dicCode = "id")
    /*@TableField(exist = false)*/
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "学生学院")
    private String studentXy;
    //@Excel(name = "学生专业", width = 15)
    @Excel(name = "学生专业", width = 15,dictTable = "lwgy_base_school", dicText = "name", dicCode = "id")
   /* @TableField(exist = false)*/
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "学生专业")
    private String studentZy;
    //@Excel(name = "学生年级", width = 15)
    @Excel(name = "学生年级", width = 15,dictTable = "lwgy_base_school", dicText = "name", dicCode = "id")
  /*  @TableField(exist = false)*/
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "学生班级")
    private String studentBj;
    @TableField(exist = false)
    private String studentid;
	/**供电状态*/
	//@Excel(name = "供电状态", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "供电状态")
    private String powerStatus;
	/**最后进出状态*/
	//@Excel(name = "最后进出状态", width = 15)
    @Excel(name = "最后进出状态", width = 15, dicCode = "direction")
    @ApiModelProperty(value = "最后进出状态1:进2：出")
    @Dict(dicCode = "direction")
    private String lastIntoStatus;
	/**最后进出时间*/
	@Excel(name = "最后进出时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后进出时间")
    private Date lastIntoTime;
	/**学生异动状态*/
	//@Excel(name = "学生异动状态", width = 15)
    @Excel(name = "学生异动状态", width = 15, dicCode = "abnormal_inout")
    @ApiModelProperty(value = "学生异动状态")
    @Dict(dicCode = "abnormal_inout")
    private String stuStatus;
}
